{% extends "home/base.html" %}
{% block title %}-自我评测{% endblock %}
{% block score %}current-item{% endblock %}
{% block mainbody %}
    <div class="main">
        <form id="form" method="post" action="/score_add">
            <div class="content-title clear">
                <span class="text">自我考核</span>
                <center>考核时间：{{ check_date.fields.score_date }}<input type="hidden" class="be_review_date" name="be_review_date" value="{{ check_date.fields.score_date }}"></center>
            </div>
            <div class="content">
                    <table class="content-table">
                        <tr>
                            <td>考核内容</td>
                            <td>考核描述</td>
                            <td>分值</td>
                            <td>自我评分</td>
                        </tr>
                        <tr>
                            <td rowspan="4">工作任务</td>
                            <td>能时时跟进，提前完成任务</td>
                            <td>39-40</td>
                            {% if data %}
                                <td rowspan="4"><input type="text" class="score_work" name="score_work" maxlength="2" placeholder="0-40" value="{{ data.fields.score_work }}"></td>
                            {% else %}
                                <td rowspan="4"><input type="text" class="score_work" name="score_work" maxlength="2" placeholder="0-40"></td>
                            {% endif %}
                        </tr>
                        <tr>
                            <td>能跟踪，按期完成任务</td>
                            <td>35-38</td>
                        </tr>
                        <tr>
                            <td>在监督下能完成任务</td>
                            <td>25-34</td>
                        </tr>
                        <tr>
                            <td>在指导下，偶尔不能完成任务</td>
                            <td>24及以下</td>
                        </tr>
                        <tr>
                            <td rowspan="4">工作质量</td>
                            <td>出色、准确,无任何差错</td>
                            <td>29-30</td>
                            {% if data %}
                                <td rowspan="4"><input type="text" class="score_quality" name="score_quality" maxlength="2" placeholder="0-30" value="{{ data.fields.score_quality }}"></td>
                            {% else %}
                                <td rowspan="4"><input type="text" class="score_quality" name="score_quality" maxlength="2" placeholder="0-30"></td>
                            {% endif %}
                        </tr>
                        <tr>
                            <td>完成任务质量尚好,但还可以再加强</td>
                            <td>25-28</td>
                        </tr>
                        <tr>
                            <td>工作疏忽,偶有小差错</td>
                            <td>15-24</td>
                        </tr>
                        <tr>
                            <td>工作质量不佳,常有差错</td>
                            <td>14及以下</td>
                        </tr>
                        <tr>
                            <td rowspan="4">工作技能</td>
                            <td>具有极丰富的专业技能，能充分完成本身职责</td>
                            <td>14-15</td>
                            {% if data %}
                                <td rowspan="4"><input type="text" class="score_skill" name="score_skill" maxlength="2" placeholder="0-15" value="{{ data.fields.score_skill }}"></td>
                            {% else %}
                                <td rowspan="4"><input type="text" class="score_skill" name="score_skill" maxlength="2" placeholder="0-15"></td>
                            {% endif %}
                        </tr>
                        <tr>
                            <td>有相当的专业技能，足以应付本身工作</td>
                            <td>11-13</td>
                        </tr>
                        <tr>
                            <td>专业技能一般，但对完成任务尚无障碍</td>
                            <td>8-10</td>
                        </tr>
                        <tr>
                            <td>对工作必需技能不熟悉，日常工作难以完成</td>
                            <td>7及以下</td>
                        </tr>
                        <tr>
                            <td rowspan="4">工作态度与责任感
                            <td>能积极主动地开展工作，以解决问题为目标，有责任心，可放心交代工作</td>
                            <td>14-15</td>
                            {% if data %}
                                <td rowspan="4"><input type="text" class="score_attitude" name="score_attitude" maxlength="2" placeholder="0-15" value="{{ data.fields.score_attitude }}"></td>
                            {% else %}
                                <td rowspan="4"><input type="text" class="score_attitude" name="score_attitude" maxlength="2" placeholder="0-15" value="{{ data.fields.score_attitude }}"></td>
                            {% endif %}
                        </tr>
                        <tr>
                            <td>工作努力主动，能较好完成分内工作</td>
                            <td>11-13</td>
                        </tr>
                        <tr>
                            <td>交付工作需要督促方能完成</td>
                            <td>8-10</td>
                        </tr>
                        <tr>
                            <td>敷衍了事，责任心差，粗心大意</td>
                            <td>7及以下</td>
                        </tr>
{#                        <tr>#}
{#                            <td>备注</td>#}
{#                            <td colspan="3"><textarea placeholder="备注"></textarea></td>#}
{#                        </tr>#}
                    </table>
                    <div class="text-align-center"><br>
                        <div id="error" class="error">{{ error }}</div>
                    </div>
                    <div class="submit-div">
                        {% if data %}
                            <span id="submit-btn" class="submit-btn">提交修改</span>
{#                            <span class="submit-btn">已评测，不能修改</span>#}
                        {% else %}
                            <span id="submit-btn" class="submit-btn">提交</span>
                        {% endif %}
                    </div>

            </div>
        </form>
    </div>

    <script src="/public/js/common/jquery-1.12.4.min.js"></script>
    <script src="/public/js/home/score_add.js"></script>
{% endblock %}
